package com.zhoushihao.class0812;

import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;

public class Combine {
    public static void main(String[] args) {
        int[] a = {24,35,17,6,41,35,29,11,24,15};
        int[] b = {35,24,6,13,9,19,29,17};
        Set<Integer> set = new LinkedHashSet<>();
//        Set<Integer> set2 = new HashSet<>();

        for (int i = 0; i < a.length; i++) {
            set.add(a[i]);
        }
        for (int i = 0; i < b.length; i++) {
            set.add(b[i]);
        }
        System.out.println(set);
//        [24, 35, 17, 6, 41, 29, 11, 15, 13, 9, 19]
    }
}
